package com.atguigu.gulimall.product.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author LiDeJie
 * @Create 2024/1/28 11:45
 * @Version 1.0
 */
@ConfigurationProperties(value = "gulimall.thread")
@Component
@Data
public class ThreadProperties {
    
    /**
     * 核心线程大小
     */
    private Integer coreSize;
    
    /**
     * 最大线程大小
     */
    private Integer maxSize;
    
    /**
     * 阻塞队列长度
     */
    private Integer queueSize;
    
    /**
     * 超时时间：默认为秒
     */
    private Integer timeOut;
}
